/**
 * 
 */
package datastructure;

/**
 * @author Michael
 *
 */
public class Pair<F extends Comparable<F>, S extends Comparable<S>> implements Comparable<Pair<F, S>> {

	public F first = null;
	public S second = null;
	
	/**
	 * 
	 */
	public Pair(F f, S s) {
		this.first = f;
		this.second =s;
	}

	@Override
	public int compareTo(Pair<F, S> obj) {
		return first.compareTo(obj.first);
	}

}
